package com.gzhryc.shared_device.oem.h5.agent;

import java.io.Serializable;
import java.util.List;

import com.gzhryc.shared_device.oem.h5.agent.dto.BusinessConfigItem;

public class LoginUser implements Serializable {

    private static final long serialVersionUID = 1L;
    
	private Long id;
    private String nickname;
    private String name;
    private String phone;
    private Integer roleType;		//关联AgentRelationEnum.RoleType + ERoleType
    private String loginToken;
    private Integer level;
    private Long parentId;
    private Integer canCancelOrder = 1;
    private List<BusinessConfigItem> businessTypes;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Integer getRoleType() {
        return roleType;
    }

    public void setRoleType(Integer roleType) {
        this.roleType = roleType;
    }

    public String getLoginToken() {
        return loginToken;
    }

    public void setLoginToken(String loginToken) {
        this.loginToken = loginToken;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public Integer getCanCancelOrder() {
		return canCancelOrder;
	}

	public void setCanCancelOrder(Integer canCancelOrder) {
		this.canCancelOrder = canCancelOrder;
	}

	public String getFullName(){
        return this.name + "("+this.phone+")";
    }

	public List<BusinessConfigItem> getBusinessTypes() {
		return businessTypes;
	}

	public void setBusinessTypes(List<BusinessConfigItem> businessTypes) {
		this.businessTypes = businessTypes;
	}
}
